#include "music.h"
#include "ui_music.h"

music::music(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::music)
{
    ui->setupUi(this);
    ui->pushButton->setFlat(true);
    ui->pushButton_2->setFlat(true);
    ui->pushButton_3->setFlat(true);
    ui->pushButton_4->setFlat(true);
    ui->pushButton_5->setFlat(true);
    ui->pushButton_6->setFlat(true);
    ui->pushButton_7->setFlat(true);
    ui->pushButton_8->setFlat(true);

}

music::~music()
{
    delete ui;
}



void music::on_pushButton_clicked()
{
    s->play();
}

void music::on_pushButton_2_clicked()
{
    st->play();
}

void music::on_pushButton_3_clicked()
{
    sta->play();
}

void music::on_pushButton_4_clicked()
{
    star->play();
}

void music::on_pushButton_5_clicked()
{
    s->stop();
}

void music::on_pushButton_6_clicked()
{
    st->stop();
}

void music::on_pushButton_7_clicked()
{
    sta->stop();
}

void music::on_pushButton_8_clicked()
{
    star->stop();
}
